<?
/*********************************************
*企业发布的所有照片
* *******************************************/
function smarty_function_qishi_company_jobs($params, &$smarty)
{ 
extract($params);
global $db;
$uid = (NULL != $uid) ? $uid : 0;
$listname = (NULL != $listname) ? $listname : 'company_list'; //默认的section名称
if (intval($uid)!=$uid) return false;
$result = $db->query("SELECT * FROM ".table('jobs')." WHERE uid='".$uid."' AND audit='1' AND display='1' ORDER BY id DESC ");
while($row = $db->fetch_array($result))
{
$row['url']=url_rewrite('jobs-show',array('id0'=>$row['id']));
$row_arr[] = $row;
}
$smarty->assign($listname, $row_arr);
unset($row_arr);
}
?>